Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle stream read error case by explicitly closing the substream #3321

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 8, 2021

Description

  • adds yamux stream id to logs to enrich rpc sesssion tracing info
  • handle stream read error case by explicitly closing the substream
  • updates rpc tests to use yamux

Motivation and Context

May allow us to diagnose where slowness in a RPC session/substream occurs

How Has This Been Tested?

Tests updated

@sdbondi sdbondi force-pushed the comms-substream-tracing branch 2 times, most recently from 9cbdcc1 to 1b72d0c Compare September 8, 2021 15:18
stringhandler
stringhandler previously approved these changes Sep 8, 2021
Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please

@stringhandler stringhandler changed the title feat: yamux stream id in logs fix: add yamux stream id in logs Sep 8, 2021
@stringhandler stringhandler changed the title fix: add yamux stream id in logs fix: handle stream read error case by explicitly closing the substream Sep 8, 2021
- adds yamux stream id to logs to enrich rpc sesssion tracing info
- handle stream read error case by explicitly closing the substream
- updates rpc tests to use yamux
@sdbondi
Copy link
Member Author

sdbondi commented Sep 8, 2021

ignored broken doc test (now needs yamux setup, previously a only MemorySocket was required)

@aviator-app aviator-app bot merged commit 336f4d6 into tari-project:development Sep 8, 2021
@sdbondi sdbondi deleted the comms-substream-tracing branch September 9, 2021 04:54
Cifko pushed a commit to Cifko/tari that referenced this pull request Sep 10, 2021
tari-project#3321)


Description
---
- adds yamux stream id to logs to enrich rpc sesssion tracing info
- handle stream read error case by explicitly closing the substream
- updates rpc tests to use yamux

Motivation and Context
---
May allow us to diagnose where slowness in a RPC session/substream occurs 

How Has This Been Tested?
---
Tests updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants